Ext.ns('Tm.file');
Tm.file.FileIndexPanel = Ext.extend(Ext.Panel, {

	frame : true,
	autoWidth : true,
	//autoHeight : true,
	layout : 'fit',
	initComponent : function() {

		var fileNavigatePanel=new Tm.file.FileNavigatePanel({});
		
		var fileSearchPanel=new Tm.file.FileSearchPanel({});
		
		var mainpanel = new Ext.TabPanel({
			frame : true,
			ref : 'mainpanel',
			activeTab : 0,
			defaults : {
				autoScroll : true
			},// 自动出现滚动条
			items : [fileNavigatePanel,fileSearchPanel],
			enableTabScroll : true
		});
		
		
		Ext.apply(this, {
			
			items : [ mainpanel ]
		});
		Tm.file.FileIndexPanel.superclass.initComponent.call(this);
	}
});